﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RMD.Modal
{
    public class VoucherItem
    {
        public int Id { get; set; }
        public string Abstract { get; set; }
        public Category Category { get; set; }
        public double CreditAmount { get; set; }
        public double DebitAmount { get; set; }
        //public int VoucherId { get; set; }
        public Voucher Parent { get; set; }
        public Department Department { get; set; }
        public Employee Employee { get; set; }
        //public Cuctomer Customer { get; set; }
        //public Project Project { get; set; }
        public string InvoiceNumber { get; set; }
        public DateTime InvoiceDate { get; set; }
        public int Quantity { get; set; }
        public double UnitPrice { get; set; }
    }

    public class Voucher
    {
        public int Id { get; set; }
        public int Type { get; set; }
        public int Number { get; set; }
        public DateTime EnterDate { get; set; }
        public int EnterBy { get; set; }
        public int AccountBy { get; set; }
        public int AuditBy { get; set; }
        public IList<VoucherItem> Items { get; set; }
    }
}
